package com.ruoyi.apps.domain;

import java.util.List;

import com.ruoyi.common.annotation.Excels;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 应用管理对象 ant_apps
 * 
 * @author ruoyi
 * @date 2023-01-15
 */
public class AntApps extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** UUID */
    @Excel(name = "UUID")
    private String uuid;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 编码 */
    @Excel(name = "编码")
    private String code;

    /** 类别 */
    @Excel(name = "类别")
    private Long categoryId;


    /** 类别对象 */
    @Excels({
            @Excel(name = "类别名称", targetAttr = "name", type = Excel.Type.EXPORT)
    })
    private AntAppsCategory category;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUuid(String uuid) 
    {
        this.uuid = uuid;
    }

    public String getUuid() 
    {
        return uuid;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }
    public void setCategoryId(Long categoryId) 
    {
        this.categoryId = categoryId;
    }

    public Long getCategoryId() 
    {
        return categoryId;
    }

    public AntAppsCategory getCategory() {
        return category;
    }

    public void setCategory(AntAppsCategory category) {
        this.category = category;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("uuid", getUuid())
            .append("name", getName())
            .append("code", getCode())
            .append("categoryId", getCategoryId())
            .toString();
    }
}
